/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 86183
 * Date: 2022-11-02
 * Time: 14:44
 */
public class TestSingleLinKedList {
    public static void main(String[] args) {
        SingleLinkedList singleLinkedList = new SingleLinkedList();
//        singleLinkedList.addLast(1);
//        singleLinkedList.addLast(2);
//        singleLinkedList.addLast(1);
//        singleLinkedList.addLast(4);
//        singleLinkedList.addLast(1);
        singleLinkedList.addFirst(1);
        singleLinkedList.addIndex(1,9);
//        singleLinkedList.addIndex(6,5);
        singleLinkedList.display();
        System.out.println();
        System.out.println(singleLinkedList.contains(78));
        singleLinkedList.remove(4);
        singleLinkedList.display();
        singleLinkedList.removeAllKey(1);
        System.out.println();
        singleLinkedList.display();



    }
}
